/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2021/7/3
 * Time: 22:09
 */

#ifndef CODSEEGMENT_DIAGRAMVIEW_H
#define CODSEEGMENT_DIAGRAMVIEW_H
#include <QtWidgets>
#include <QtCore>

class DiagramView
    : public QGraphicsView
{
    Q_OBJECT
public:
    DiagramView(QGraphicsScene * scene, QWidget * parent);
    virtual ~DiagramView();

protected:
    void wheelEvent(QWheelEvent * event) override;
    void drawBackground(QPainter * painter, const QRectF & rect) override;
};

#endif//CODSEEGMENT_DIAGRAMVIEW_H
